package com.sunda.spmsuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * spms角色权限关系表
 * </p>
 *
 * @author Wayne
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SPMS_ROLE_PERMISSION")
@ApiModel(value="SpmsRolePermission对象", description="spms角色权限关系表")
public class SpmsRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一UUID")
    @TableField("UUID")
    private String uuid;

    @ApiModelProperty(value = "角色UUID")
    @TableField("ROLE_UUID")
    private String roleUuid;

    @ApiModelProperty(value = "权限编号")
    @TableField("PERMISSION_ID")
    private String permissionId;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getRoleUuid() {
        return roleUuid;
    }

    public void setRoleUuid(String roleUuid) {
        this.roleUuid = roleUuid;
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }

    @Override
    public String toString() {
        return "SpmsRolePermission{" +
                "uuid='" + uuid + '\'' +
                ", roleUuid='" + roleUuid + '\'' +
                ", permissionId='" + permissionId + '\'' +
                '}';
    }
}
